//
//  EJSaveToAlbum.h
//  EJTools
//
//  Created by ejiang on 2021/4/1.
//  Copyright © 2021 LiuShuang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Photos/Photos.h>

typedef void(^SuccessBlock)(NSString * assetLocalId);

typedef void(^FailureBlock)(NSError * error);

@interface EJSaveToAlbum : NSObject

+ (EJSaveToAlbum *)mainSave;

- (void)configCustomAlbumName:(NSString *)customName;

- (void)saveImage:(UIImage *)image successBlock:(SuccessBlock)block failureBlock:(FailureBlock)failure;

- (void)saveImageWithUrl:(NSURL *)imgUrl successBlock:(SuccessBlock)block failureBlock:(FailureBlock)failure;

- (void)saveVideoWithUrl:(NSURL *)videoUrl successBlock:(SuccessBlock)block failureBlock:(FailureBlock)failure;

@end
